package com.ruoyi.web.dto.consumer;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ConsumerRequest {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "姓名")
    @NotBlank(message = "姓名不能为空")
    private String username;

    @ApiModelProperty(value = "身份证号")
    @NotBlank(message = "身份证号不能为空")
    private String idCard;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;


    @ApiModelProperty(value = "身份证照片")
    @NotBlank(message = "身份证照片不能为空")
    private String idCardImg;

    @ApiModelProperty(value = "手持身份证照片")
    @NotBlank(message = "手持身份证照片不能为空")
    private String idCardHand;

    @ApiModelProperty(value = "企业id")
    private Long companyId;

}
